package cn.liontalk.AbstractFactory;

public class BMWCarFactory implements AbstractCarFactory {
    @Override
    public void installWheel() {
        BMWWheelFactory bmwWheelFactory = new BMWWheelFactory();
        String wheel = bmwWheelFactory.createWheel();
        System.out.println("安装轮胎：" + wheel);
    }

    @Override
    public void installSteeringWheel() {
        SteeringWheelFactory steeringWheelFacatory = new BMWSteeringWheelFactory();
        String steeringWheel = steeringWheelFacatory.createSteeringWheel();
        System.out.println("安装方向盘：" + steeringWheel);
    }

    @Override
    public void installEngine() {
        EngineFactory engineFactory = new BMWEngineFactory();
        String engineName = engineFactory.createEngine();
        System.out.println("安装引擎：" + engineName);
    }
}
